Improve error from xcalloc().
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 20 Nov 2007 04:31:06 +0000 (04:31 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 20 Nov 2007 04:31:06 +0000 (04:31 +0000)
gpsbabel/util.c

index fc3e74e21b2aaaaeda6cbfed7f046ccc39dc5d24..a6f89c2b3111be18fb7a885fd85a70597ff5531f 100644 (file)
@@ -101,7 +101,7 @@ xcalloc(size_t nmemb, size_t size)
 #endif
 
        if (!obj) {
-               fatal("gpsbabel: Unable to allocate %ld bytes of memory.\n", (unsigned long) size);
+               fatal("gpsbabel: Unable to allocate %ld units of %ld bytes of memory.\n", (unsigned long) nmemb, (unsigned long) size);
        }
 
        return obj;